//说明：http://www.liuocean.com/index.php/2019/11/15/zhuan-cz-gong-ju-ji-shi-yong-jie-shao-gui-fangit/
module.exports = {
  types: [
    { value: 'feat', name: 'feat:     一个新的特性' },
    { value: 'fix', name: 'fix:      修复一个Bug' },
    { value: 'docs', name: 'docs:     变更的只有文档' },
    {
      value: 'style',
      name:
        'style:    空格, 分号等格式修复',
    },
    {
      value: 'refactor',
      name: 'refactor: 代码重构，注意和特性、修复区分开',
    },
    {
      value: 'perf',
      name: 'perf:     提升性能',
    },
    { value: 'test', name: 'test:     添加一个测试' },
    {
      value: 'chore',
      name:
        'chore:    开发工具变动(构建、脚手架工具等)',
    },
    { value: 'revert', name: 'revert:   代码回退' },
    //{ value: 'WIP', name: 'WIP:      正在进行的工作' },
  ],

  scopes: [{ name: '公共组件' }, { name: '脚手架' }],

  //allowTicketNumber: false,
  //isTicketNumberRequired: false,
  //ticketNumberPrefix: 'TICKET-',
  //ticketNumberRegExp: '\\d{1,5}',

  // it needs to match the value for field type. Eg.: 'fix'
  /*
  scopeOverrides: {
    fix: [
      {name: 'merge'},
      {name: 'style'},
      {name: 'e2eTest'},
      {name: 'unitTest'}
    ]
  },
  */
  // override the messages, defaults are as follows
  messages: {
    type: "选择要提交的更改类型:",
    scope: '选择一个scope (可选):',
    // used if allowCustomScopes is true
    //customScope: '555Denote the SCOPE of this change:',
    subject: '短说明:\n',
    body: '长说明，使用"|"换行(可选)：\n',
    breaking: '非兼容性说明 (可选):\n',
    footer: '关联关闭的issue，例如：#31, #34(可选):\n',
    confirmCommit: '确定提交说明?',
  },

  allowCustomScopes: false,
  allowBreakingChanges: ['feat', 'fix'],
  // skip any questions you want
  //skipQuestions: ['body'],

  // limit subject length
  subjectLimit: 100,
  // breaklineChar: '|', // It is supported for fields body and footer.
  // footerPrefix : 'ISSUES CLOSED:'
  // askForBreakingChangeFirst : true, // default is false
};